package handler

import (
	"context"
	pb "micro_note/initialize/proto/hello"
)

type hello struct{}

func NewHelloApi() pb.HelloHandler {
	return &hello{}
}

func (self *hello) Say(ctx context.Context, req *pb.SayRequest, resp *pb.SayResponse) error {
	resp.Msg = "hello   " + req.Name
	return nil
}
